package com.mtl.discuss.mapper;

import com.mtl.discuss.domain.Discuss;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.additional.idlist.IdListMapper;
import tk.mybatis.mapper.common.BaseMapper;
import java.util.List;

/**
 * 评论 Mapper 接口
 *
 * @author qms
 * @since 2019-08-05
 */
@Repository
public interface DiscussMapper  extends BaseMapper<Discuss>, IdListMapper<Discuss,Integer>{
    List<Discuss> selectByCondition(@Param("searchKey") String searchKey);

    List<Discuss> findByUserId(@Param("list") List<Integer> list);

    List<Discuss> selectByArticleId(@Param("articleId")Integer articleId);
}
